package com.songxh.domain.service.api;

import com.baomidou.mybatisplus.extension.service.IService;
import com.songxh.application.dto.SysRoleDTO;
import com.songxh.infrastructure.db.pojo.SysRole;

import java.util.List;

/**
 * @author songxh
 * @create 2022-12-19-15:47
 */
public interface SysRoleService extends IService<SysRole> {

    /**
     * 根据用户id获取角色信息
     * @param userId
     * @return
     */
    List<SysRoleDTO> getRoleByUserId(Long userId);
}
